<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/view/common/taglibs.jsp"%>
<html>
	<head>
		<title>合格证详情-金融风险管理系统</title>
		<script src="${contextPath}/scripts/jquery/jquery-1.8.3.min.js" type="text/javascript"></script>
        <link href="${contextPath}/styles/default.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript">
		function release_(id) {
			var searchForm = document.searchForm;
			searchForm.action = "<s:property value='contextPath'/>/cm/release.do?id="+id+"&search.releaseOnly="+id;
			searchForm.submit();
		}
		</script>
	</head>
	<body>
	<div class="navigation">
	    <span><a href="javascript:window.history.back();"><img src="${contextPath}/images/back_nav_btn.png" /></a>
	    <a href="javascript:window.history.back();">返回</a>
	    <a href="javascript:window.history.forward();"><img src="${contextPath}/images/go_nav_btn.png" /></a>
	     <a href="javascript:window.history.forward();">前进</a>
	    <a href="javascript:window.location.reload();"><img src="${contextPath}/images/refresh_nav_btn.png" /></a>
	     <a href="javascript:window.location.reload();">刷新</a>
	    </span>合格证管理&gt;&gt;详情
  	</div>
	<div class="xt_main_right_center">
	<table width="100%" border="0" align="center">
		<tr>
			<td  class="left-td-width-bg" align="right">合格证号：</td>
			<td>${entity.certificationNum }</td>
			<td  class="left-td-width-bg" align="right">车架号：</td>
			<td>${entity.chassis }</td>
        </tr>
	    <tr>
			<td class="left-td-width-bg"  align="right">店名：</td>
			<td>${entity.shop.shopName }</td>
	    	<td class="left-td-width-bg"  align="right">店号：</td>
			<td>${entity.shop.shopMark }</td>
        </tr>
	    <tr>
			<td  class="left-td-width-bg" align="right">金融机构：</td>
			<td>${entity.financial.name }</td>
			<td class="left-td-width-bg"  align="right">渠道：</td>
			<td>${entity.brand.name }</td>
        </tr>
	    <tr>
			<td class="left-td-width-bg"  align="right">出门日：</td>
			<td><s:date name="entity.goingOutDate" format="yyyy-MM-dd" /></td>
			<td  class="left-td-width-bg" align="right">预定到店日：</td>
			<td><s:date name="entity.scheduledDate" format="yyyy-MM-dd" /></td>
        </tr>
        <tr>
        	<td  class="left-td-width-bg" align="right">发动机号：</td>
			<td>${entity.engine }</td>
			<td  class="left-td-width-bg" align="right">车型：</td>
			<td>${entity.motorcycleType }</td>
        </tr>
        <tr>
			<td  class="left-td-width-bg" align="right">订单号：</td>
			<td>${entity.orderNumber }</td>
			<td class="left-td-width-bg"  align="right">供货价：</td>
			<td><s:property value="formatAmount(entity.supplyPrice)"/></td>
        </tr>
        <tr>
			<td  class="left-td-width-bg" align="right">汇票号：</td>
			<td>${entity.draft }</td>
			<td  class="left-td-width-bg" align="right">状态：</td>
			<td><s:if test="entity.theAddress!=null&&entity.state.index==2">在库(二网)</s:if><s:else><s:property value="entity.state.name" /></s:else></td>
		</tr>
	    <tr>
			<td class="left-td-width-bg"  align="right">汇票起始日：</td>
			<td><s:date name="entity.draftBeginDate" format="yyyy-MM-dd" /></td>
			<td class="left-td-width-bg"  align="right">汇票到期日：</td>
			<td><s:date name="entity.draftEndDate" format="yyyy-MM-dd" /></td>
        </tr>
         <tr>
	      <td  class="left-td-width-bg" align="right">释放时间：</td>
	      <td><s:date name="entity.leaveDate" format="yyyy-MM-dd"/></td>
	      <td  class="left-td-width-bg" align="right">释放人：</td>
	      <td><s:property value="entity.releaseUser.realName"/></td>
        </tr>
         <tr>
	      <td  class="left-td-width-bg" align="right">释放类型：</td>
	      <td>
	      <s:if test="@com.jysz.certificate.persistence.enums.CertificationType@RELEASEED.equals(entity.state)">
	      	<s:if test="entity.release!=null">释放单释放</s:if>
	      	<s:else>导入释放</s:else>
	      	</s:if>
	      </td>
	      <td  class="left-td-width-bg" align="right">释放单号：</td>
	      <td><s:property value="entity.releaseNum"/>
	      </td>
        </tr>
        <tr>
        	<td colspan="4" align="center">
        		<input type="button" value="" onclick="javascript:window.history.back();" class="btn_return" />
        	</td>
        </tr>
      </table>
	<p><font color="#0066CC"><strong>回库记录列表：</strong></font></p>
    <table width="100%" border="0">
      <tr>
        <td class="top-td-width-bg">序号</td>
        <td class="top-td-width-bg">操作人</td>
        <td class="top-td-width-bg">操作时间</td>
        <td class="top-td-width-bg">合格证号</td>
        <td class="top-td-width-bg">车架号</td>
        <td class="top-td-width-bg">释放时间</td>
        <td class="top-td-width-bg">回库时间</td>
        <td class="top-td-width-bg">备注</td>
      </tr>
       <s:iterator value="recordReturn" status="i" id="u">
      <tr>
        <td class="down-left-td-width-bg">${i.count}</td>
        <td class="down-left-td-width-bg">${u.user}</td>
        <td class="down-left-td-width-bg"><s:date name="createdAt" format="yyyy-MM-dd"/></td>
        <td class="down-left-td-width-bg">${u.certificationNum }</td>
        <td class="down-left-td-width-bg">${u.chassis }</td>
        <td class="down-left-td-width-bg"><s:date name="leaveDate" format="yyyy-MM-dd"/></td>
        <td class="down-left-td-width-bg"><s:date name="returnDate" format="yyyy-MM-dd"/></td>
        <td class="down-left-td-width-bg">${u.remark}</td>
      </tr>
      </s:iterator>
    </table>
	</div>
	</body>
</html>